package org.example.cdpcrpbackend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.example.cdpcrpbackend.controller.dto.Activity1;
import org.example.cdpcrpbackend.controller.dto.Activity2;
import org.example.cdpcrpbackend.controller.dto.Activity3;
import org.example.cdpcrpbackend.controller.dto.ActivityAttend1;
import org.example.cdpcrpbackend.domain.Activity;
import org.example.cdpcrpbackend.mapper.ActivityMapper;
import org.example.cdpcrpbackend.service.ActivityService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class ActivityServiceImpl extends ServiceImpl<ActivityMapper, Activity> implements ActivityService {
    private final ActivityMapper activityMapper;

    @Override
    public List<Activity1> listBrief() {
        return activityMapper.listBrief();
    }

    @Override
    public Activity2 detailById(Integer id) {
        return activityMapper.detailById(id);
    }

    @Override
    public List<ActivityAttend1> listAttend(String studentId) {
        return activityMapper.listAttend(studentId);
    }

    @Override
    public List<Activity3> listDepStuId(String id) {
        return activityMapper.listDepStuId(id);
    }

    @Override
    public List<Activity1> search(String keyword) {
        return activityMapper.search(keyword);
    }


}
